import machine
import time
pin4 = machine.Pin(4, machine.Pin.IN)
while 1:
    time.sleep_ms(500)
    print(pin4.value())
